package com.ts.enterprise.module.user.query;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @Author dean
 * @Date 2021/11/3 17:18
 * @Description
 */
@Data
public class PasswordLoginQuery {

   @NotEmpty(message = "手机号不能为空")
   @ApiModelProperty(value = "手机号",example = "18961540176")
   @Length(min = 11,max = 11,message = "请输入11位手机号")
   private String mobile;

   @NotEmpty(message = "密码不能为空")
   @ApiModelProperty(value = "密码",example = "123456")
   private String password;
}
